﻿@using Coslen.Framework
@model Coslen.Framework.Logging.LogEventModel

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<p>        
        @Html.ActionLink("Back to List", "Index")  
    </p>

    <fieldset>
        <legend>Fields</legend>
        
        <div class="display-label">Id</div>
        <div class="display-field">@Model.LogEvent.Id  </div>
        
        <div class="display-label">LogDate</div>
        <div class="display-field">@String.Format("{0:g}", Model.LogEvent.LogDate)  </div>
        
        <div class="display-label">Name</div>
        <div class="display-field">@Model.LogEvent.LoggerProviderName  </div>
        
        <div class="display-label">Source</div>
        <div class="display-field">@Model.LogEvent.Source  </div>
        
        <div class="display-label">MachineName</div>
        <div class="display-field">@Model.LogEvent.MachineName  </div>
        
        <div class="display-label">Type</div>
        <div class="display-field">@Model.LogEvent.Type  </div>
        
        <div class="display-label">Level</div>
        <div class="display-field">@Model.LogEvent.Level  </div>
        
        <div class="display-label">Message</div>
        <div class="display-field">
            <pre>@Model.LogEvent.Message.WordWrap(80)  </pre>
        </div>
        
        <div class="display-label">StackTrace</div>
        <div class="display-field">@Model.LogEvent.StackTrace  </div>                      
        
    </fieldset>

    @Html.Raw(FormsHelper.OutputXmlTableForLogging(Model.LogEvent.AllXml) )

    <p>        
        @Html.ActionLink("Back to List", "Index")  
    </p>
